package firstcontent.RunTimeZone;

/**
 * @Author: fxy
 * @Date: 2022/02/09/13:15
 * @Description:栈帧
 */
public class StackFrameTest {
    /*
    * */
    public static void main(String[] args) {
        StackFrameTest stackFrameTest = new StackFrameTest();
        stackFrameTest.t1();
    }

    public void t1(){
        System.out.println("t1 start");
        t2();
        System.out.println("t1 end");
    }

    public int t2(){
        System.out.println("t2 start");
        int i = 10;
        int m = (int)t3();
        System.out.println("t2 will end");
        return i+m;
    }

    public double t3(){
        System.out.println("t3 start");
        double j = 20.0;
        System.out.println("t3 will end");
        return j;
    }

    public void t4(){
        int a = 0;
        double b = 0.23;
        {
            int c = 10;
            c = a+12;
        }
        int d = 1;
    }
}
